package com.jc.algorithmes.chapter1.stack;

public class FixedCapacityStatckOfStrings {
    private String[] a;
    private int N;

    public FixedCapacityStatckOfStrings(int cap) {
        a = new String[cap];
    }

    public boolean isEmpty(){
        return N == 0;
    }

    public int size(){
        return N;
    }

    public void push(String item){
        a[N++] = item;
    }

    public String pop(){
        return a[--N];
    }

    public static void main(String[] args) {

    }
}
